 <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:U('Index/index')}">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">提现管理</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                
                    <table class="search-tab">
                        <tr>
                           
							 <td>
							 
							   <!-- 微信扫描二维码提现:<img src="/tixianma/{$my.keyword}.png"  height=120/>-->
							  姓名： <input type="text" id="alipayname"/>  &nbsp;&nbsp;&nbsp;&nbsp;
							  支付宝账号： <input type="text" id="openid"/>  &nbsp;&nbsp;&nbsp;&nbsp; 
							  提现金额:<input type="text" id="money"/>&nbsp;&nbsp;&nbsp;&nbsp;
							  <!--提现密码:<input type="text" id="mima"/>&nbsp;&nbsp;&nbsp;&nbsp;-->
							  
							  <input type="button" onclick="tixian()" value="申请提现"/>
							   
							 </td>
                        </tr>
                    </table>
                    <script>
					
					   function tixian(){
					     var alipayname=$('#alipayname').val();
						 var mima=$('#mima').val();
						 var zhifubao=$('#openid').val();
						 var money=$('#money').val();
						 
						 
						 layer.msg('正在处理提现,请勿刷新', {
									  icon: 16
									  ,shade: 0.01
									  ,time:2000000
									});
						 
						 $.post("{:U('Tixian/savetixian')}",{"zhifubao":zhifubao,"money":money,"mima":mima,"alipayname":alipayname},function(re){
						 
						   layer.closeAll();
	  
	   if(re.msg==0){
	  
	    layer.alert('您的提现提现申请已经成功提交,我们会尽快审核',function(){
		
		  location.reload();
		
		});
	  
	   }
	   
	   if(re.msg==11){
	   
	      layer.alert('提现密码不正确');
	   
	   }
	   
	   
	   if(re.msg==2){
	   
	      layer.alert('提现失败,请联系客服',function(){
		
		 // location.href="/index.php/User/tixian/keyword/{$Think.session.keyword}";
		
		   });
	     
	   
	   }
	   
	   
	   if(re.msg==5){
	   
	     layer.alert('提现金额不能小于20元');
	   
	   }
	   
	   if(re.msg==3){
	   
	     layer.alert('提现金额不能大于自身余额');
	   
	   }
	   
	   if(re.msg==4){
	   
	     layer.alert('只能最后一次扫码微信号提现');
	   
	   }
	   
	
	
	
	
						 
						 
						 })
					   
					   
					}
					
					</script>
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
              <div class="result-title">
                    <div class="result-list">
                        <a >我的提现记录</a>  | &nbsp;&nbsp;<a>我当前的余额为: {$my.money} 元</a>
                      
                    </div>
                </div>

                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                           
                            <th>提现时间</th>
                            
                            <th>提现金额</th>
							<th>手续费</th>
							<th>实到金额</th>
                            <th>提现状态</th>
                        </tr>
						
						<foreach name="re" item="v">
						
                        <tr>
                           
                           
                            <td>{$v.time|date="Y-m-d H:i:s",###}</td>
                            <td>{$v['money']+$v['maolirun']}元</td>
							
							<td>
							<if condition="$v.type eq 1">
							特殊提现
							<else/>
							{$v.maolirun}元
							</if>
							</td>
							<td>
							  {$v['money']}元
							</td>
							<td>
                               <if condition="$v.status eq 1">
							     提现成功
							   <elseif condition="$v.status eq 2"/>
							    审核中
								<elseif condition="$v.status eq 3"/>
								已从其他渠道提现
							   </if>							
							
							</td>
                        </tr>
                        </foreach>
                    </table>
                    <div class="list-page"> {$page}</div>
                </div>
            </form>
        </div>
    </div>
